package com.woniuxy.controller;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: 马宇航
 * @Todo: 面向接口编程
 * @DateTime: 22/01/26/0026 上午 10:43
 * @Component: 成都蜗牛学苑
 **/
@Controller
@RequestMapping("/rbacManager")
public class ManagerController {
    @Autowired(required = false)
    ManagerService managerService;
    @RequestMapping("/addOne")
    public int addManager(RbacManager rbacManager){
      return   managerService.addManager(rbacManager);
    }
}
